import 'dart:math';

import 'package:equatable/equatable.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:website.core/core/application/blocs/app_navigator_bloc/models/page_models/web_purchase_item_page_model.dart';
import 'package:website.core/core/domain/entities/user.dart';
import 'package:website.core/footer/presentation/widget/widget.dart';
import 'package:website.core/injection_container.dart' as core_di;
import 'package:website.core/core/presentation/config/widget_config.dart';
import 'package:website.core/core/presentation/helpers/markdown_builder.dart';
import 'package:website.core/core/presentation/theme/theme.dart';
import 'package:website.core/core/presentation/widgets/app_button.dart';
import 'package:website.core/core/presentation/widgets/app_header.dart';
import 'package:website.core/core/presentation/widgets/app_loader.dart';
import 'package:website.core/core/presentation/widgets/delayed_widget.dart';
import 'package:website.core/core/presentation/widgets/header_angry_words_pro_compact_button.dart';
import 'package:website.core/core/presentation/widgets/header_angry_words_pro_regular_button.dart';
import 'package:website.core/core/presentation/widgets/header_authorization_button.dart';
import 'package:website.core/core/presentation/widgets/header_divider.dart';
import 'package:website.core/core/presentation/widgets/header_logo_button.dart';
import 'package:website.core/core/presentation/widgets/header_signing_in_button.dart';
import 'package:website.core/core/presentation/widgets/header_signing_up_button.dart';
import 'package:website.core/core/presentation/widgets/header_user_button.dart';
import 'package:website.core/core/presentation/widgets/stateful_wloc.dart';
import 'package:website.core/core/presentation/widgets/wloc_builder.dart';
import 'package:website.home/injection_container.dart' as home_di;
import 'package:website.home/web_purchase_item_page/application/bloc.dart';
import 'package:website.home/web_purchase_item_page/domain/use_cases/get_web_purchase_item_models/models/web_purchase_item_models.dart';
import 'package:website.home/web_purchase_item_page/domain/use_cases/place_order/use_case.dart';
import 'package:website.home/web_purchase_item_page/presentation/localization/translation.dart';
import 'package:website.home/web_purchase_item_page/presentation/theme/theme.dart';

part 'view.dart';

part 'widgets/image_floor.dart';

part 'widgets/premium_feature_block.dart';

part 'wloc.dart';

part 'wloc_state.dart';

part 'wloc_state_factory.dart';

class WebPurchaseItemPage extends StatefulWidget {
  const WebPurchaseItemPage({
    required this.pageModel,
    Key? key,
  }) : super(key: key);

  final WebPurchaseItemPageModel pageModel;

  @override
  State<WebPurchaseItemPage> createState() => _WebPurchaseItemPageWloc();
}
